package team.knowers.firm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import team.knowers.firm.dao.entity.FlightDO;
import team.knowers.firm.dao.entity.NoticeDO;
import team.knowers.firm.dto.req.AddNoticeReqDTO;
import team.knowers.firm.dto.req.PageNoticeInfoReqDTO;

import java.util.List;

public interface NoticeService extends IService<NoticeDO> {
    Boolean addNotice(AddNoticeReqDTO req);
    Boolean deleteNotice(int id);
    List<NoticeDO> getNoticesPerPeople(int userId);
    IPage<NoticeDO> getAllNoticesPage(PageNoticeInfoReqDTO reqDTO);
    //公司取消航班后通知处理
    Boolean addNoticeCancelFlight(int flightId);
    //公司更改航班后通知处理
    Boolean addNoticeUpdateFlight(FlightDO req);
}
